package com.android.settings.audio.peq.peq.ui;

import android.graphics.Bitmap;

import com.android.settings.audio.peq.soundeffect.PluginDataManager;
import com.android.settings.audio.peq.soundeffect.SoundEffectConfig;
import com.android.settings.audio.peq.peq.Band;

import java.util.List;

/**
 * Created by Administrator on 2019/3/25.
 */

public interface IPeq {
    void init();

    void onTuningStyleClick();

    void onImportExportClick();

    void onSaveMixerValueClick();

    void setPEQEnable(boolean enable, float preamp, boolean enablePreamp);

    void setPeqValues(List<Band> bands, double preAmp);

    float[] setPeqValue(Band band, double preAmp);

    float[] setPeqPreAmp(double preAmp);

    void changeToNone();

    void onPause();

    void onDestroy();

    void onQrcodeDecoded(String content);

    void importDataFromLocal(PluginDataManager.PeqData peqData);

    void showImport();

    void showAddDialog();

    void showEditDialog(SoundEffectConfig targetSoundEffectConfig);

    Object importDataToLocal(SoundEffectConfig soundEffectConfig);

    interface IPeqView {
        void updateBands(PluginDataManager.PeqData peqData);

        void updateCurrentStyleName(String name);

        List<Band> getBands();

        double getPreAmp();

        void showQrcode(Bitmap qrBitmap);
    }
}
